package com.xuecheng.media.service;

import com.xuecheng.content.model.dto.MultPartFileInfoInit;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface MinIoService {
    String downloadToTemp(String objectPath) throws IOException;

    MultPartFileInfoInit splitFileToChunks(File file) throws IOException;

    void mergeChunks(MultPartFileInfoInit fileInfo) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    MultPartFileInfoInit splitFileToChunks(MultipartFile file) throws IOException;
}
